package com.bgrc.hubu12305.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bgrc.hubu12305.dao.RoleDao;
import com.bgrc.hubu12305.entity.RoleEntity;
import com.bgrc.hubu12305.service.RoleService;
import org.springframework.stereotype.Service;

/**
 * 包名:com.bgrc.hubu12305.service.impl
 * 用户:86182
 * 时间:20211211:482021/12/11
 */
@Service
public class RoleServiceImpl extends ServiceImpl<RoleDao, RoleEntity> implements RoleService {

    @Override
    public RoleEntity queryRoleById(long id) {
        RoleEntity roleEntity = this.getOne(new QueryWrapper<RoleEntity>().eq("id", id));
        return roleEntity;
    }
}
